__all__ = ["compare_list"]



def compare_list(*func):
    def _list(x, y, *func):
        for f in func:
            m, n = f(x), f(y)
            if m < n:
                return -1
            elif m > n:
                return 1
        return 0

    return lambda x, y: _list(x, y, *func)
